/*
package com.ytc.teaching.controller.workrecord;

import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.PageResponseResult;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.api.ContentClient;
import com.xuecheng.teaching.domain.CourseWorkRec;
import com.xuecheng.teaching.domain.WorkRecord;
import com.xuecheng.teaching.domain.dto.PageRequestDto;
import com.xuecheng.teaching.service.TeachWorkRecordService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Slf4j
@RestController
public class TeachWorkRecordController {
    @Autowired
     private TeachWorkRecordService teachWorkRecordService;
     //查询作业批改记录
     @PostMapping("/work-record/list")
     public ResponseResult findList(PageRequest request){
         return teachWorkRecordService.findList(request);
     }


    @PostMapping
    public ResponseResult doGetWorkCorrectDetails(@RequestBody PageRequestDto param) {
        Assert.notNull(param, "Request Param Can Not be Null!");
        List<WorkRecord> result = teachWorkRecordService.selectByTeachplanId(
            param.getTeachplanId(), param.getPageNo(), param.getPageSize());
        return PageResponseResult.okResult((long) result.size(), result);
    }

    @GetMapping("/work-record/{id}")
    public ResponseResult doGetWorkRecordDetail(@PathVariable("id") Long id) {
        Assert.notNull(id, "Work Record ID Not be Null!");
        WorkRecord result = teachWorkRecordService.findById(id);
        return PageResponseResult.okResult(result);
    }

}
*/
